package cn.com.se.sharepictrue.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by KIDNG on 2015/11/29.
 */
public class ToastUtils {
    private ToastUtils(){}

    public static void show(Context ctx, int resId) {
        show(ctx, Toast.LENGTH_SHORT, resId);
    }

    public static void show(Context ctx, CharSequence text) {
        show(ctx, Toast.LENGTH_SHORT, text);
    }

    public static void show(Context ctx, int duration, int resID) {
        show(ctx, duration, ctx.getString(resID));
    }

    public static void show(Context ctx, int duration, CharSequence text) {
        Toast.makeText(ctx, text, duration).show();
    }

}
